#获得图片的分辨率
import cv2
import numpy as np
import os
import sys
import time
# 存储位置
origin_dir = 'face'#改为自己需要调整图片大小的原图片文件夹名称

for filenames in os.listdir(origin_dir):
    #print(filenames)
    img = cv2.imread(origin_dir + '/' +filenames)
    #gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY)
    print(img.shape[:2])
print("Finished!")